package com.ucampus.dao;


import com.ucampus.entity.oS_foods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface oS_foodsMapper {
    // 分页查询
    @Select("SELECT id, name, img, address, average FROM foods LIMIT #{limit} OFFSET #{offset}")
    List<oS_foods> selectFoodsWithPagination(@Param("limit") int limit, @Param("offset") int offset);
}
